import request from "@/utils/request";

// 查询简历列表
export function listResume(query) {
  return request({
    url: "/system/resume/list",
    method: "get",
    params: query,
  });
}

// 查询上传的简历
export function listResumeFile() {
  return request({
    url: "/system/resume/listResumeFile",
    method: "get",
  });
}

// 查询简历详细
export function getById(id) {
  return request({
    url: "/system/resume/getById/" + id,
    method: "get",
  });
}

// 删除简历
export function delByIds(ids) {
  return request({
    url: "/system/resume/deleteByIds/" + ids,
    method: "delete",
  });
}

// 根据id查询导入的简历详细
export function getResumeFileById(id) {
  return request({
    url: "/system/resume/getResumeFileById/" + id,
    method: "get",
  });
}

// 根据id删除简历文件
export function delResumeFileByIds(ids) {
  return request({
    url: "/system/resume/deleteResumeFileByIds/" + ids,
    method: "delete",
  });
}

// 上传简历pdf
export function uploadResume(data) {
  return request({
    url: "/system/resume/upload",
    method: "post",
    data: data,
    headers: { "Content-Type": "multipart/form-data" },
  });
}

export function getFile(data) {
  return request({
    url: "/system/resume/getFile",
    method: "get",
    params: data,
    // headers: { "Content-Type": "multipart/form-data" },
  });
}

export function queueCount() {
  return request({
    url: "/system/resume/queueCount1",
    method: "get"
  });
}
